"use strict";
function pluck(obj, names) {
    return names.map(function (name) { return obj[name]; });
}
var person3 = { name: 'Jarid', age: 35 };
var res2 = pluck(person3, ['name']);
console.log(res2); // ["Jarid"]
// T--->person3
// K--->['name', 'age']
// T[K][]--->['Jarid']
